package com.xiaoshuidi.cloud.module.rooms.controller.admin.apartment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@Schema(description = "创建公寓请求对象")
public class ApartmentEditVO {
    @Schema(description = "公寓id")
    @NotNull(message = "公寓id不能为空")
    private Long apartmentId;

    @Schema(description = "公寓名")
    @NotNull(message = "公寓名不能为空")
    private String apartmentName;

    @Schema(description = "是否集中式")
    @NotNull(message = "请选择集中式/分散式")
    private Boolean isConcentrated;

    @Schema(description = "房源类型(经营模式)")
    @NotNull(message = "房源类型(经营模式)不能为空")
    private String sourceType;

    @Schema(description = "最短租期")
    @NotNull(message = "最短租期不能为空")
    private Integer shortestLeaseTerm;

    @Schema(description = "门店联系电话")
    @NotNull(message = "门店联系电话不能为空")
    private String storeTel;

    @Schema(description = "省")
    private String province;

    @Schema(description = "市")
    private String city;

    @Schema(description = "区")
//    @NotNull(message = "地区不能为空")
    private String district;

    @Schema(description = "街道")
    private String street;

//    @NotNull(message = "详细地址不能为空")
    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "标签")
    @Size(min = 0, max = 50, message = "标签总字数不能超过48个字")
    private String tags;

    @Schema(description = "周边配套")
    @NotNull(message = "周边配套不能为空")
    private String roomAssets;

    @Schema(description = "交通路线")
    @NotNull(message = "交通路线不能为空")
    private String transportLine;

    @Schema(description = "公共设施，字典表逗号分割")
    @NotNull(message = "公共设施不能为空")
    private String publicFacilities;

    @Schema(description = "图片url,多张采用英文逗号分割")
    @NotNull(message = "图片不能为空")
    @Size(min = 0, max = 1500, message = "图片url长度不能超过1500字符")
    private String picUrl;

    @Schema(description = "视频URL，多条采用英文逗号分割")
    @Size(min = 0, max = 500, message = "视频URL长度不能超过500字符")
    private String videoUrl;

    @Schema(description = "vr封面url")
    @Size(min = 0, max = 500, message = "vr封面url长度不能超过500字符")
    private String vrPicUrl;

    @Schema(description = "vr URL,多条采用英文逗号分割")
    @Size(min = 0, max = 500, message = "vr URL长度不能超过500字符")
    private String vrUrl;

    @Schema(description = "二维码链接")
    private String qrCodeUrl;

    @Schema(description = "优惠信息")
    @Size(min = 0, max = 500, message = "优惠信息不能超过500字")
    private String discountInfo;

    @Schema(description = "优惠标题")
    @Size(min = 0, max = 100, message = "优惠标题不能超过500字")
    private String discountTitle;

    @Schema(description = "门店经度")
    private String lng;

    @Schema(description = "门店纬度")
    private String lat;
}
